import { defineStore } from 'pinia'

export const useUser = defineStore('user', {
  state: () => ({
    userInfo: {
      user: {}
    }
  }),
  actions: {
    updateUserInfo(info) {
      this.userInfo = Object.assign({}, this.userInfo, info)
    }
  }
})